package com.test.service;


import com.test.mapper.UserMapper;
import com.test.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lms on 2017/10/25.
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public int addUser(String userName, String mobile) {

        return userMapper.insert(userName, mobile);
    }

    public List<User> getUser() {

        return userMapper.getUser();
    }
}
